package bpm.dao.impl.foreignactive;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import bpm.domain.foreignactive.ForeignActiveView;

public class ForeignActiveRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int i) throws SQLException {
		ForeignActiveView faa=new ForeignActiveView();
		
		faa.setId(rs.getString("ID"));
		faa.setTitle(rs.getString("TITLE"));
		faa.setActivityStatus(rs.getString("ACTIVITY_STATUS"));
		faa.setMeetingDate(rs.getDate("MEETING_DATE"));
		faa.setChangeExplain(rs.getString("CHANGE_EXPLAIN"));
		faa.setMeetingHour(rs.getString("MEETING_HOUR"));
		faa.setMeetingMinu(rs.getString("MEETING_MINU"));
		faa.setMeetingLanguage(rs.getString("MEETING_LANGUAGE"));
		faa.setMeetingPlace(rs.getString("MEETING_PLACE"));
		faa.setTranslator(rs.getString("TRANSLATOR"));
		faa.setPersonNum(rs.getString("PERSON_NUM"));
		faa.setChinaAttend(rs.getString("CHINA_ATTEND"));
		faa.setChinaJoiner(rs.getString("CHINA_JOINER"));
		faa.setDrafter(rs.getString("DRAFTER"));
		faa.setMainDept(rs.getString("MAIN_DEPT"));
		faa.setForeignJoiner(rs.getString("CHINA_JOINER"));
		faa.setDrafterTel(rs.getString("DRAFTER_TEL"));
		faa.setForeignOrg(rs.getString("FOREIGN_ORG"));
		faa.setForeignDuty(rs.getString("FOREIGN_DUTY"));
		faa.setForeignAttend(rs.getString("FOREIGN_ATTEND"));
		faa.setForeignCountry(rs.getString("FOREIGN_COUNTRY"));
		faa.setContactUnit(rs.getString("CONTACT_UNIT"));
		faa.setForeignCar(rs.getString("FOREIGN_CAR"));
		faa.setContactMan(rs.getString("CONTACT_MAN"));
		faa.setMeetHistory(rs.getString("MEET_HISTORY"));
		faa.setActivityBrief(rs.getString("ACTIVITY_BRIEF"));
		faa.setBackground(rs.getString("BACKGROUND"));
		faa.setInterOpinion(rs.getString("INTER_OPINION"));
		faa.setAttachName(rs.getString("ATTACH_NAME"));
		faa.setDelFlag(rs.getString("DEL_FLAG"));
		faa.setOperUser(rs.getString("OPER_USER"));
		faa.setOperDate(rs.getDate("OPER_DATE"));
		faa.setDraftDate(rs.getDate("DRAFT_DATE"));
		faa.setMeetingWeek(rs.getString("MEETING_WEEK"));
		faa.setPhone(rs.getString("PHONE"));		
		faa.setFormType(rs.getString("FORM_TYPE"));		
		faa.setConStatus(rs.getString("CON_STATUS"));		
		faa.setLeaders(rs.getString("LEADERS"));
		return faa;
	}

}


	


